<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8" />
  <link rel="icon" href="/favicon.ico" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>合理用药测试</title>
</head>
<body>
<div id=z>zzzzz</div>
  <script src="js/McLoader.js"></script>
  
  
  <script>
  
  // 【00】    
  function MCInit() {
  	var pass = new Params_MC_PASSclient_In();
	MCPASSclient = pass;
	MCPASSclient = {
    "HospID": "0",
    "UserID": "80011",
    "UserName": "柳中悦",
    "DeptID": "3062",
    "DeptName": "急诊外科"
};
  }
  
  function init_patient() {
  	var patient = new Params_MC_Patient_In();
	MCpatientInfo = patient;
	MCpatientInfo = {
    "PatCode": "0000229269",
    "InHospNo": "3464124",
    "VisitCode": "1",
    "Name": "杰森·塔图姆",
    "Sex": "不详",
    "Birthday": "1998-03-03 00:00:00",
    "HeightCM": "",
    "WeighKG": "",
    "DeptCode": "3062",
    "DeptName": "急诊外科",
    "DoctorCode": "80011",
    "DoctorName": "柳中悦",
    "PatStatus": 2,
    "IsLactation": -1,
    "IsPregnancy": -1,
    "multidaydosepriv": 0,
    "PregStartDate": "",
    "HepDamageDegree": -1,
    "RenDamageDegree": -1,
    "UseTime": "2024-06-05 16:31:03",
    "CheckMode": "mz",
    "IsDoSave": 1
}
  }
  function init_allergen(){
  var arrayAllergen = new Array();
      //var allergen = new Params_Mc_Allergen_In();
      //allergen.Index = "aller92818";          //序号
      //allergen.AllerCode = AllerCode;      //编码
      //allergen.AllerName = AllerName; //名称
      //allergen.AllerSymptom = "瘙痒"; //过敏症状
      //arrayAllergen[arrayAllergen.length] = allergen;
      McAllergenArray = [
    {
        "Index": "allergen1",
        "AllerSymptom": "油漆 头孢类 红霉素类 含碘药品 金制剂 青霉素 牛奶 鱼、虾等水产食品 植物花粉 空气粉尘 头又大"
    }
]
  	
  }
  function init_medcond(){
  	//
  	var arrayMedCond = new Array();
      //var medcond;
      //{
        //medcond = new Params_Mc_MedCond_In();
        //medcond.Index = "1";            //诊断序号
        //medcond.DiseaseCode = disease_code; //诊断编码
        //medcond.DiseaseName = disease_name;   //诊断名称
        //medcond.RecipNo = "1";           //处方号
        //arrayMedCond[arrayMedCond.length] = medcond;
//
        //medcond = new Params_Mc_MedCond_In();
        //medcond.Index = "2";            //诊断序号
        //medcond.DiseaseCode = "zxm"; //诊断编码
        //medcond.DiseaseName = "222";   //诊断名称
        //medcond.RecipNo = "2";           //处方号
        //arrayMedCond[arrayMedCond.length] = medcond;
//
      //}
      McMedCondArray = [
    {
        "Index": "medcond1",
        "DiseaseCode": "A36.900",
        "DiseaseName": "白喉",
        "RecipNo": ""
    },
    {
        "Index": "medcond2",
        "DiseaseCode": "L60.800x004",
        "DiseaseName": "白甲",
        "RecipNo": ""
    },
    {
        "Index": "medcond3",
        "DiseaseCode": "L67.101",
        "DiseaseName": "白发",
        "RecipNo": ""
    }
];
  	//
  }
  function init_drug(){
  	 
              McDrugsArray = [
    {
        "Index": "drug1",
        "OrderNo": "[object Object]1",
        "DrugUniqueCode": "Y000000579",
        "DrugName": "0.9%氯化钠注射液",
        "DosePerTime": "1",
        "DoseUnit": "ml",
        "FrequencyCode": "ST",
        "Frequency": "立即",
        "RouteCode": "109",
        "RouteName": "免煎颗粒",
        "StartTime": "2024-06-04 10:50:55",
        "DeptCode": "3062",
        "DeptName": "急诊外科",
        "DoctorCode": "80011",
        "DoctorName": "柳中悦",
        "Num": "1",
        "NumUnit": "袋",
        "Remark": "自行车3",
        "PayClass": "自费",
        "GroupTag": "Z4J1T9ABR-17047696188121-JZ00043922-",
        "IsTempDrug": 0,
        "OrderType": 0,
        "EndTime": "",
        "ExecuteTime": "",
        "RecipNo": "",
        "Purpose": 0,
        "OprCode": "",
        "MediTime": "0"
    },
    {
        "Index": "drug2",
        "OrderNo": "[object Object]1",
        "DrugUniqueCode": "Y000000408",
        "DrugName": "碳酸钙D3颗粒",
        "DosePerTime": "1",
        "DoseUnit": "g",
        "FrequencyCode": "ST",
        "Frequency": "立即",
        "RouteCode": "22",
        "RouteName": "漱口",
        "StartTime": "2024-06-04 10:50:55",
        "DeptCode": "3062",
        "DeptName": "急诊外科",
        "DoctorCode": "80011",
        "DoctorName": "柳中悦",
        "Num": "1",
        "NumUnit": "盒",
        "Remark": null,
        "PayClass": "自费",
        "GroupTag": "Z4J1T9ABR-17047696188121-JZ00043922-",
        "IsTempDrug": 0,
        "OrderType": 0,
        "EndTime": "",
        "ExecuteTime": "",
        "RecipNo": "",
        "Purpose": 0,
        "OprCode": "",
        "MediTime": "0"
    },
    {
        "Index": "drug3",
        "OrderNo": "[object Object]1",
        "DrugUniqueCode": "Y000000579",
        "DrugName": "0.9%氯化钠注射液",
        "DosePerTime": "1",
        "DoseUnit": "ml",
        "FrequencyCode": "ST",
        "Frequency": "立即",
        "RouteCode": "22",
        "RouteName": "漱口",
        "StartTime": "2024-06-04 10:50:55",
        "DeptCode": "3062",
        "DeptName": "急诊外科",
        "DoctorCode": "80011",
        "DoctorName": "柳中悦",
        "Num": "1",
        "NumUnit": "袋",
        "Remark": null,
        "PayClass": "自费",
        "GroupTag": "Z4J1T9ABR-17047696188121-JZ00043922-",
        "IsTempDrug": 0,
        "OrderType": 0,
        "EndTime": "",
        "ExecuteTime": "",
        "RecipNo": "",
        "Purpose": 0,
        "OprCode": "",
        "MediTime": "0"
    },
    {
        "Index": "drug4",
        "OrderNo": "[object Object]1",
        "DrugUniqueCode": "Y000000574",
        "DrugName": "复方磺胺甲噁唑片",
        "DosePerTime": "111",
        "DoseUnit": "粒",
        "FrequencyCode": "ST",
        "Frequency": "立即",
        "RouteCode": "109",
        "RouteName": "免煎颗粒",
        "StartTime": "2024-06-04 11:32:21",
        "DeptCode": "3062",
        "DeptName": "急诊外科",
        "DoctorCode": "80011",
        "DoctorName": "柳中悦",
        "Num": "2",
        "NumUnit": "瓶",
        "Remark": null,
        "PayClass": "乙类[0.03]",
        "GroupTag": "Z4J1T9ABR-17047696188121-JZ00043922-",
        "IsTempDrug": 0,
        "OrderType": 0,
        "EndTime": "",
        "ExecuteTime": "",
        "RecipNo": "",
        "Purpose": 0,
        "OprCode": "",
        "MediTime": "0"
    },
    {
        "Index": "drug5",
        "OrderNo": "[object Object]1",
        "DrugUniqueCode": "Y000000811",
        "DrugName": "维生素C注射液",
        "DosePerTime": "1",
        "DoseUnit": "g",
        "FrequencyCode": "ST",
        "Frequency": "立即",
        "RouteCode": "22",
        "RouteName": "漱口",
        "StartTime": "2024-06-04 16:25:30",
        "DeptCode": "3062",
        "DeptName": "急诊外科",
        "DoctorCode": "80011",
        "DoctorName": "柳中悦",
        "Num": "1",
        "NumUnit": "支",
        "Remark": "信息1",
        "PayClass": "自费",
        "GroupTag": "Z4J1T9ABR-17047696188121-JZ00043922-",
        "IsTempDrug": 0,
        "OrderType": 0,
        "EndTime": "",
        "ExecuteTime": "",
        "RecipNo": "",
        "Purpose": 0,
        "OprCode": "",
        "MediTime": "0"
    }
];

  }
  
  
  MCInit();
  HisScreenData()
function HisScreenData() {
	init_patient();
	init_drug();
	init_medcond();
	init_allergen();
	// init_operation();
	// init_exam();
	//init_lab()
}
	
  /*
  window['MCPASSclient'] = {
    "HospID": "0",
    "UserID": "80011",
    "UserName": "柳中悦",
    "DeptID": "3062",
    "DeptName": "急诊外科"
}

  window['MCpatientInfo'] = {
    "PatCode": "0000229269",
    "InHospNo": "3464124",
    "VisitCode": "1",
    "Name": "杰森·塔图姆",
    "Sex": "不详",
    "Birthday": "1998-03-03 00:00:00",
    "HeightCM": "",
    "WeighKG": "",
    "DeptCode": "3062",
    "DeptName": "急诊外科",
    "DoctorCode": "80011",
    "DoctorName": "柳中悦",
    "PatStatus": 2,
    "IsLactation": -1,
    "IsPregnancy": -1,
    "multidaydosepriv": 0,
    "PregStartDate": "",
    "HepDamageDegree": -1,
    "RenDamageDegree": -1,
    "UseTime": "2024-06-05 15:34:53",
    "CheckMode": "mz",
    "IsDoSave": 1
}
  window['McAllergenArray'] = [
    {
        "Index": "allergen1",
        "AllerSymptom": "油漆 头孢类 红霉素类 含碘药品 金制剂 青霉素 牛奶 鱼、虾等水产食品 植物花粉 空气粉尘 头又大"
    }
]
  window['McMedCondArray']=[
    {
        "Index": "medcond3",
        "DiseaseCode": "L67.101",
        "DiseaseName": "白发",
        "RecipNo": ""
    },
    {
        "Index": "medcond3",
        "DiseaseCode": "L67.101",
        "DiseaseName": "白发",
        "RecipNo": ""
    },
    {
        "Index": "medcond3",
        "DiseaseCode": "L67.101",
        "DiseaseName": "白发",
        "RecipNo": ""
    }
]
  window['McDrugsArray']=[
    {
        "Index": "drug5",
        "OrderNo": "[object Object]1",
        "DrugUniqueCode": "Y000000811",
        "DrugName": "维生素C注射液",
        "DosePerTime": "1",
        "DoseUnit": "g",
        "FrequencyCode": "ST",
        "Frequency": "立即",
        "RouteCode": "22",
        "RouteName": "漱口",
        "StartTime": "2024-06-04 16:25:30",
        "DeptCode": "3062",
        "DeptName": "急诊外科",
        "DoctorCode": "80011",
        "DoctorName": "柳中悦",
        "Num": "1",
        "NumUnit": "支",
        "Remark": "信息1",
        "PayClass": "自费",
        "GroupTag": "Z4J1T9ABR-17047696188121-JZ00043922-",
        "IsTempDrug": 0,
        "OrderType": 0,
        "EndTime": "",
        "ExecuteTime": "",
        "RecipNo": "",
        "Purpose": 0,
        "OprCode": "",
        "MediTime": "0"
    },
    {
        "Index": "drug5",
        "OrderNo": "[object Object]1",
        "DrugUniqueCode": "Y000000811",
        "DrugName": "维生素C注射液",
        "DosePerTime": "1",
        "DoseUnit": "g",
        "FrequencyCode": "ST",
        "Frequency": "立即",
        "RouteCode": "22",
        "RouteName": "漱口",
        "StartTime": "2024-06-04 16:25:30",
        "DeptCode": "3062",
        "DeptName": "急诊外科",
        "DoctorCode": "80011",
        "DoctorName": "柳中悦",
        "Num": "1",
        "NumUnit": "支",
        "Remark": "信息1",
        "PayClass": "自费",
        "GroupTag": "Z4J1T9ABR-17047696188121-JZ00043922-",
        "IsTempDrug": 0,
        "OrderType": 0,
        "EndTime": "",
        "ExecuteTime": "",
        "RecipNo": "",
        "Purpose": 0,
        "OprCode": "",
        "MediTime": "0"
    },
    {
        "Index": "drug5",
        "OrderNo": "[object Object]1",
        "DrugUniqueCode": "Y000000811",
        "DrugName": "维生素C注射液",
        "DosePerTime": "1",
        "DoseUnit": "g",
        "FrequencyCode": "ST",
        "Frequency": "立即",
        "RouteCode": "22",
        "RouteName": "漱口",
        "StartTime": "2024-06-04 16:25:30",
        "DeptCode": "3062",
        "DeptName": "急诊外科",
        "DoctorCode": "80011",
        "DoctorName": "柳中悦",
        "Num": "1",
        "NumUnit": "支",
        "Remark": "信息1",
        "PayClass": "自费",
        "GroupTag": "Z4J1T9ABR-17047696188121-JZ00043922-",
        "IsTempDrug": 0,
        "OrderType": 0,
        "EndTime": "",
        "ExecuteTime": "",
        "RecipNo": "",
        "Purpose": 0,
        "OprCode": "",
        "MediTime": "0"
    },
    {
        "Index": "drug5",
        "OrderNo": "[object Object]1",
        "DrugUniqueCode": "Y000000811",
        "DrugName": "维生素C注射液",
        "DosePerTime": "1",
        "DoseUnit": "g",
        "FrequencyCode": "ST",
        "Frequency": "立即",
        "RouteCode": "22",
        "RouteName": "漱口",
        "StartTime": "2024-06-04 16:25:30",
        "DeptCode": "3062",
        "DeptName": "急诊外科",
        "DoctorCode": "80011",
        "DoctorName": "柳中悦",
        "Num": "1",
        "NumUnit": "支",
        "Remark": "信息1",
        "PayClass": "自费",
        "GroupTag": "Z4J1T9ABR-17047696188121-JZ00043922-",
        "IsTempDrug": 0,
        "OrderType": 0,
        "EndTime": "",
        "ExecuteTime": "",
        "RecipNo": "",
        "Purpose": 0,
        "OprCode": "",
        "MediTime": "0"
    },
    {
        "Index": "drug5",
        "OrderNo": "[object Object]1",
        "DrugUniqueCode": "Y000000811",
        "DrugName": "维生素C注射液",
        "DosePerTime": "1",
        "DoseUnit": "g",
        "FrequencyCode": "ST",
        "Frequency": "立即",
        "RouteCode": "22",
        "RouteName": "漱口",
        "StartTime": "2024-06-04 16:25:30",
        "DeptCode": "3062",
        "DeptName": "急诊外科",
        "DoctorCode": "80011",
        "DoctorName": "柳中悦",
        "Num": "1",
        "NumUnit": "支",
        "Remark": "信息1",
        "PayClass": "自费",
        "GroupTag": "Z4J1T9ABR-17047696188121-JZ00043922-",
        "IsTempDrug": 0,
        "OrderType": 0,
        "EndTime": "",
        "ExecuteTime": "",
        "RecipNo": "",
        "Purpose": 0,
        "OprCode": "",
        "MediTime": "0"
    }
]
*/

document.getElementById('z').onclick = MDC_DoCheck(HIS_dealwithPASSCheck,1) 
    function HIS_dealwithPASSCheck(result, isFullFill) {
console.warn(result)
console.warn(isFullFill)

var status = MDC_GetSysPrStatus("", "");
        if (status == 1) {
          alert("处方保存成功！");
        }
        else {
          alert("处方保存失败！");
        }
        
}

  </script>
  
  
  </body>
  </html>